//引入vue
import Vue from 'vue';
//引入vue-router
import VueRouter from 'vue-router';
//引入组件
import Thread from "./components/Thread.vue"
import Calendar from "./components/Calendar.vue"


//第三方库需要use一下才能用
Vue.use(VueRouter)

const routes=[
{path:"/toThread/:day",component:Thread},
{path:"/toCalendar",component:Calendar},
{path:"",redirect:"/toCalendar"}
]
const router=new VueRouter({routes})

export default   router